package edu.gdit.health.service.Impl;

import edu.gdit.health.base.result.Results;
import edu.gdit.health.dao.SysUserDao;
import edu.gdit.health.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysUserServiceImpl implements SysUserService {
    @Autowired
    SysUserDao sysUserDao;
    @Override
    public Results getUser(int offset, int limit){
        int count=sysUserDao.count();
        return Results.success(count,sysUserDao.getUser(offset, limit));
    }
}

